/*
 * SelectElementMouseListener.hpp
 *
 *  Created on: 02-01-2011
 *      Author: Przemek
 */

#pragma once

#include "gui/MouseListener.hpp"
#include "world/Element.hpp"

/*
 * Selects an element from the world when the mouse is pressed.
 */
class SelectElementMouseListener: public MouseListener
{
	private:
		Element* selected;

	public:
		bool anySelected() const;
		Element* getSelected();
		void clearSelection();

		void mousePressed(const MouseListener::EventArguments& arguments);
};
